class nfs {
  require apt::nfs

  file {
    '/etc/exports':
      notify => Service['ntp'],
      source => "puppet:///modules/${module_name}/exports";

    '/exports/':
      ensure => directory,
      mode => '755';
  }

  service {
    'nfs-kernel-server':
      enable => true,
      subscribe => File['/etc/exports'];
  }
}

